<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 200px;
            height: 200px;
        }

        .box1 {
            background-color: pink;
            float: left;
        }

        .box2 {
            background-color: #0080ff;
            float: left;
        }

        .box3 {
            background-color: #00ffff;
            float: left;
        }

        .box4 {
            background-color: #00ff80;
            float: left;
        }
    </style>
</head>

<body>
    <div class="box1">1</div>
    <div class="box2">2</div>
    <div class="box3">3</div>
    <div class="box4">4</div>
</body>

</html>